package com.usian.controller;

import com.usian.feign.ItemFeign;
import com.usian.utils.AdNode;
import com.usian.utils.ItemCatResult;
import com.usian.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/frontend/itemCategory")
public class itemCategoryController {

    @Autowired
    private ItemFeign itemFeign;



    @RequestMapping("/selectItemCategoryAll")
    public Result selectItemCategoryAll(){
        ItemCatResult itemCatResult = itemFeign.selectItemCategoryAll();
        if (itemCatResult!=null){
            return Result.ok(itemCatResult);
        }
        return Result.error("查无数据");
    }



}
